package com.scuec.groupfive.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.Date;

@Data
public class PostComment {
    private Long commentId;
    private Long postId;
    private Long userId;
    private String content;
    private Long parentId;
    private Integer status;
    @JsonProperty("createTime")
    private Date createdAt;
    @JsonProperty("updateTime")
    private Date updatedAt;
    private String username;
    // 关联的用户信息
    private UserInfo user;

    // 构造方法、getter和setter
    public PostComment() {}

}
